package com.fowo.api.model.rule.stock;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 备货规则 导入导出辅助模型 */
@Getter
@Setter
public class RuleStockExcelPo {

  @Size(max = 50, message = "采购计划长度不能超过20")
  @ExcelProperty(value = "采购计划")
  private Integer buyPlan;

  @ExcelProperty(value = "本地仓发货频率")
  private Integer localSendFrequency;

  @ExcelProperty(value = "海外仓发货频率")
  private Integer overseasSendFrequency;

  @ExcelProperty(value = "安全天数")
  private Integer safeDays;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "建议量扣除必断货量")
  private String suggestDockOut;
}
